import { service } from '../../service'
Page({
  data: {
    classList: ['热门', '男装', '女装', '酒水', '玩具', '医药'], // 分类列表
    curTab: 0,
    productList: [{}, {}, {}, {}, {}, {}, {}, {}, {}], // 商品列表
    banners: [
      { banner: '' },
      { banner: '' },
      { banner: '' }
    ]
  },
  switchTab(e) {
    const { index } = e.currentTarget.dataset
    this.setData({
      curTab: index
    })
  },
  onShareAppMessage() {
    return {
      title: '丰扬分销',
      path: '/pages/login/index'
    }
  },
  jumpDetails(e) {
    wx.navigateTo({
      url: '/pages/detail/index?id=24337531248832'
    })
  },
  toSearch() {
    wx.navigateTo({
      url: '../goodsearch/index'
    })
  }
})
